package com.test.group6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.test.group6.domain.WorkesInformation;
import com.test.group6.service.WorkesReviseService;

/**
 *@author jang_rdong 
 *@version 1.1
 * 
 */
@RestController
@RequestMapping("/WorkesReviseController")
public class WorkesReviseController {
	@Autowired
	WorkesReviseService workesService;
	/**
	 *@param  workesInformation 企业高管信息
	 *@return {@link String}
	 * 
	 */
	@RequestMapping("/reviseWorkes")
	public String reviseWorkes(WorkesInformation workesInformation) {//更新企业高管信息
		int i=workesService.reviseWorkes(workesInformation);
		if (i==1) {
			return "success";
		}else {
			return "error";
		}
	}

}
